package com.hongxun.modules.api.service.impl;

import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.hongxun.modules.api.dao.BEntryCriteriaDao;
import com.hongxun.modules.api.entity.BEntryCriteriaEntity;
import com.hongxun.modules.api.service.BEntryCriteriaService;



@Service("bEntryCriteriaService")
public class BEntryCriteriaServiceImpl implements BEntryCriteriaService {
	@Autowired
	private BEntryCriteriaDao bEntryCriteriaDao;
	
	@Override
	public BEntryCriteriaEntity queryObject(String guid){
		return bEntryCriteriaDao.queryObject(guid);
	}
	
	@Override
	public List<BEntryCriteriaEntity> queryList(Map<String, Object> map){
		return bEntryCriteriaDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bEntryCriteriaDao.queryTotal(map);
	}
	
	@Override
	public void save(BEntryCriteriaEntity bEntryCriteria){
		bEntryCriteria.setGuid(UUID.randomUUID().toString());
		bEntryCriteriaDao.save(bEntryCriteria);
	}
	
	@Override
	public void update(BEntryCriteriaEntity bEntryCriteria){
		bEntryCriteriaDao.update(bEntryCriteria);
	}
	
	@Override
	public void delete(String guid){
		bEntryCriteriaDao.delete(guid);
	}
	
	@Override
	public void deleteBatch(String[] guids){
		bEntryCriteriaDao.deleteBatch(guids);
	}
	
}
